#include "widget_manager.h"

#include <QApplication>
#include "application_ex.h"

int main(int argc, char *argv[])
{
    QTextStream tsDebug(stdout);

    QString sVersion = QString(" (%1 %2.%3%4)").arg(DEF_DEVICE_MODEL).arg(DEF_COMPLETE_VER).arg(DEF_COMPLETE_VER_EX).arg(DEF_VER_BETA_TIMES);
    tsDebug << "Welcome to use " << DEF_DEVICE_MODEL << sVersion << "\n";

    qputenv("QT_IM_MODULE", QByteArray("qtvirtualkeyboard"));

//    QApplication a(argc, argv);
    ApplicationEx a(argc, argv);

    WidgetManager w;
    w.show();

    return a.exec();
}
